<?php
class ZMessageItem {
    /**
     * @var String
     */
    private $threadTitle;
    /**
     * @var String
     */
    private $lead;
    /**
     * @var String
     */
    private $text;
    /**
     * @var String
     */
    private $source;
    /**
     * @var String
     */
    private $url;
    /**
     * @var String
     */
    private $author;
    /**
     * @var String
     */
    private $postTitle;
    /**
     * @var DateTime
     */
    private $time;
    /**
     * @var Int
     */
    private $leadAuthor;
    /**
     * @var Int
     */
    private  $numberOfLikes;
    /**
     * @var Int
     */
    private $Id;


    function __construct($threadTitle, $lead, $text, $source, $url, $author, $postTitle, $time, $leadAuthor, $likes, $id) {
        $this->threadTitle = $threadTitle;
        $this->lead = $lead;
        $this->text = $text;
        $this->source = $source;
        $this->url = $url;
        $this->author = $author;
        $this->postTitle = $postTitle;
        $this->time = $time;
        $this->leadAuthor = $leadAuthor;
        $this->numberOfLikes = $likes;
        $this->Id = $id;
    }

    /**
     * @return String
     */
    public function getThreadTitle(){
        return $this->threadTitle;
    }

    /**
     * @return String
     */
    public function getLead(){
        return $this->lead;
    }

    /**
     * @return String
     */
    public function getText(){
        return $this->text;
    }

    /**
     * @return String
     */
    public function getSource(){
        return $this->source;
    }

    /**
     * @return String
     */
    public function getURL(){
        return $this->url;
    }

    /**
     * @return String
     */
    public function getAuthor(){
        return $this->author;
    }

    /**
     * @return String
     */
    public function getPostTitle(){
        return $this->postTitle;
    }

    /**
     * @return DateTime
     */
    public function getTime(){
        return $this->time;
    }

    /**
     * @return int
     */
    public function getLeadAuthor(){
        return $this->leadAuthor;
    }

    /**
     * Get thread ID
     * @return Int Thread ID
     */
    public function getNumberOfLikes(){
        return $this->numberOfLikes;
    }

    /**
     * Get SMT
     * @return Int Id
     */
    public function getId(){
        return $this->Id;
    }

}
?>
